<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %> 
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目资料增加</title>
<jsp:include page="../../import.jsp" flush="true" />
<script type="text/javascript" src="<%=path %>/resource/lib/plugins/ajaxfileupload.js"></script>

</head>
<body class="iframeBody">
<div class="Wrapper">
<form id="formSet1" >
        <div class="fieldset1 tabel_col clearFix" id="fileDiv">
       		 <input name="prjId" id="prjId" type="hidden" value="${prjId}">
			          <div class="fieldBox col_100">
			                    <div class="label">资料上传</div>
			                    <div class="field">
			                    	<jsp:include page="../../system/sysUlFilesRec/sysSysUlFilesRecUpload.jsp" flush="true" >
			                    		<jsp:param name="filePath"  value="prjfile"/>
			                    		</jsp:include>
			                    			 <input id="tabNm"  name="tabNm"  type="hidden"  value="PRJ_BSC_INFO">
			                    	<input  id="pkId"  name="pkId"  type="hidden"  value="${prjId}">
			                    </div>
			               </div>
			</div>
			</form>
<div class="clearLine"></div>
<script type="text/javascript">
	var detailFlag='${detailFlag}';
	var prjId='${prjId}';
	var sysCd='${sysCd}';
	var orgCd	='${orgCd}';
	var cfgCd='${cfgCd}';
	var cfgDtlCd='${cfgDtlCd}';
	var cfgDtId='${cfgDtId}';
	var grid = null;
	$(function () {
		 var ligerForm = liger.get("formSet1");
	});
	function  uploadCallback(fileData){
		var params = {};
			  params.fileNm=fileData[0].fileNm;
			  params.filePath=fileData[0].filePath;
    		  params.prjId = prjId;
    		  params.sysCd= sysCd;
    		  params.orgCd= orgCd;
    		  params.cfgCd =cfgCd;
    		  params.cfgDtlCd =cfgDtlCd;
    		  params.cfgDtId =cfgDtId;
        var url = '<%=path%>/project/prjbscinfo/addProjectPhoto.do';
        $.ajax({
    		type: 'post',
    		dataType:'json',
    		data:params,
    		url: url,
    		success:function(msg){
    			 if(msg.success == 1){
    				parent.prjligergrid.reload();
    			    parent.$.ligerDialog.close();
    				parent.$(".l-dialog,.l-window-mask").css("display","none"); 
    			 }else{
    				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
    			 }
    		}
    	});
	} 
	
</script>
</body>
</html>